<#setting number_format="#">
<#assign sysFields=["id","deleted","createTime","modifyTime","createById","modifyById"]>
<body class="fixed-top">
		<div class="container-fluid">
            <div class="row-fluid">
               <div class="span12">
                   <!-- BEGIN THEME CUSTOMIZER-->
                   <div id="theme-change" class="hidden-phone">
                       <i class="icon-cogs"></i>
                        <span class="settings">
                            <span class="text">Theme Color:</span>
                            <span class="colors">
                                <span class="color-default" data-style="default"></span>
                                <span class="color-green" data-style="green"></span>
                                <span class="color-gray" data-style="gray"></span>
                                <span class="color-purple" data-style="purple"></span>
                                <span class="color-red" data-style="red"></span>
                            </span>
                        </span>
                   </div>
                   <!-- END THEME CUSTOMIZER-->
                  <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                   <h3 class="page-title">
                     Form Layout
                   </h3>
                   <ul class="breadcrumb">
                       <li>
                           <a href="${r"${base}"}/manage/index.do">首页</a>
                           <span class="divider">/</span>
                       </li>
                       <li>
                           <a href="#">Form Stuff</a>
                           <span class="divider">/</span>
                       </li>
                       <li class="active">
                           Form Layout
                       </li>
                       <li class="pull-right search-wrap">
                           <form action="search_result.html" class="hidden-phone">
                               <div class="input-append search-input-area">
                                   <input class="" id="appendedInputButton" type="text">
                                   <button class="btn" type="button"><i class="icon-search"></i> </button>
                               </div>
                           </form>
                       </li>
                   </ul>
                   <!-- END PAGE TITLE & BREADCRUMB-->
               </div>
            </div>
            <!-- BEGIN PAGE CONTENT-->
            <div class="row-fluid">
                <div class="span12">
                    <!-- BEGIN SAMPLE FORMPORTLET-->
                    <div class="widget green">
                        <div class="widget-title">
                            <h4><i class="icon-reorder"></i>输入内容</h4>
                            <span class="tools">
                            <a href="javascript:;" class="icon-chevron-down"></a>
                            </span>
                        </div>
                        <div class="widget-body">
                            <!-- BEGIN FORM-->
                            <form action="manage/${table.className?uncap_first}/save.do" class="form-horizontal jform" data-options="{async:true,info:'添加操作!'}">
<#list table.fields as index>
	<#if sysFields?seq_index_of(index.property) = -1>
                                <div class="control-group">
                                    <label class="control-label">${index.remark}</label>
                                    <div class="controls">
		<#if index.propertyType="String" && index.precision gt 0>
			<#if index.columnType="text"><#-- 富文本 -->
										<textarea name ="${index.property}" class="span6 " rows="3">${r"${"}${table.className?uncap_first}.${index.property}}</textarea>
            <#elseif index.precision = 1><#-- 布尔类型 -->
            							<label class="checkbox">
                                            <input name ="${index.property}" required="true" style="opacity: 0;" type="checkbox" value="" />正常状态
                                        </label>
                                    	<label class="checkbox">
                                            <input name ="${index.property}" required="true" style="opacity: 0;" type="checkbox" value="" />锁定
                                        </label>
            <#else><#-- 普通字符串 -->
                                        <input name ="${index.property}" value="${r"${"}${table.className?uncap_first}.${index.property}}" maxlength="${index.precision}" type="text" required="true" placeholder="" class="span6" />
            </#if>
                                        
		<#elseif index.propertyType="Integer"><#-- 整数 -->
                                        <input name ="${index.property}" value="${r"${"}${table.className?uncap_first}.${index.property}}" digit="true" type="text" placeholder="" class="span6" />
		<#elseif index.propertyType="Double"><#-- 数值 -->
                                        <input name ="${index.property}" value="${r"${"}${table.className?uncap_first}.${index.property}}" number="true" type="text" placeholder="" class="input-mini" />
		<#elseif index.propertyType="Date"><#-- 日期 -->
                                        <input name ="${index.property}" value="${r"${"}${table.className?uncap_first}.${index.property}}" type="text" placeholder="" class="m-ctrl-medium datepicker jdate" />
		<#elseif index.propertyType="Boolean"><#-- 布乐类型 -->
                                        <label class="checkbox">
                                            <input name ="${index.property}" required="true" style="opacity: 0;" type="checkbox" value="" />正常状态
                                        </label>
                                    	<label class="checkbox">
                                            <input name ="${index.property}" required="true" style="opacity: 0;" type="checkbox" value="" />锁定
                                        </label>
		<#else><#-- 其他类型 -->
                                        <input name ="${index.property}" value="${r"${"}${table.className?uncap_first}.${index.property}}" type="text" placeholder="" class="input-mini" />
		</#if>
                                        <span class="help-inline">${index.remark}</span>
                                    </div>
                                </div>
	</#if>
</#list>
                                <div class="form-actions">
                                    <button type="submit" class="btn blue"><i class="icon-ok"></i> Save</button>
                                    <button type="button" class="btn jback"><i class=" icon-remove"></i> Cancel</button>
                                </div>
                            </form>
                            <!-- END FORM-->
                        </div>
                    </div>
                </div>
            </div>
		</div>
</body>